package com.softer.chengxin.dicinfo.service;

import com.softer.chengxin.common.domin.CommonResult;
import com.softer.chengxin.common.domin.ManagerPageResult;
import com.softer.chengxin.common.domin.Page;
import com.softer.chengxin.dicinfo.entity.DicInfo;

import java.util.List;

/**
 * @author zcz
 * @date 2018/12/20
 */
public interface DicInfoService {
    /**
     * 查询列表
     * @param page
     * @param dicInfo
     * @return
     */
    ManagerPageResult getData(Page page, DicInfo dicInfo);

    /**
     * 新增
     * @param dicInfo
     * @return
     */
    CommonResult add(DicInfo dicInfo);

    /**
     * 修改
     * @param dicInfo
     * @return
     */
    CommonResult update(DicInfo dicInfo);
    /**
     * 修改
     * @param id
     * @return
     */
    CommonResult delete(String id);
    /**
     * 根据id查询字典信息表
     * @param id
     * @return
     */
    DicInfo getDicInfoById(String id);

    /**
     * 根据字典类型查询字典信息列表
     * @param typeCode
     * @return
     */
    List<DicInfo> getDicInfoByTypeCode(String typeCode);
}
